package com.yjd.comm.enums;

/**
 * <b>description</b>：流水账父类型 <br>
 * <b>time</b>：2015-8-7下午3:32:05 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum FundsDataPTypeEnum {
	CZ(1, "充值"), LC(2, "理财"), TX(3, "提现"), HDJL(
			4, "活动奖励"),JK(5,"借款"),QT(6,"其他");
	private FundsDataPTypeEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	/**
	 * 值
	 */
	private Integer value;
	/**
	 * 描述
	 */
	private String description;

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static FundsDataPTypeEnum get(Integer value) {
		FundsDataPTypeEnum[] vs = FundsDataPTypeEnum.values();
		for (FundsDataPTypeEnum v : vs) {
			if (v.getValue().equals(value)) {
				return v;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		FundsDataPTypeEnum v = get(value);
		return v != null ? v.getDescription() : null;
	}
}
